package com.library.util;


import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.FilterType;
import org.springframework.context.annotation.Import;
import org.springframework.core.type.filter.RegexPatternTypeFilter;
import java.util.regex.Pattern;
import com.library.util.RootConfig.WebPackage;


@Configuration
@Import(DataConfig.class)
@ComponentScan(basePackages = {"com.library"},excludeFilters = {@ComponentScan.Filter(type = FilterType.CUSTOM,value =WebPackage.class)})
public class RootConfig {

    public static class WebPackage extends RegexPatternTypeFilter{
        public WebPackage() {super((Pattern.compile("com\\.library\\.controler.*")));}
    }

}
